package com.csu.backmanagesys.Mapper;
import com.csu.backmanagesys.Domain.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface CategoryMapper {
    List<Category> selectCategory();

    Category selectCategoryById(String id);

    List<Category> fuzzySelectCategory(String param);

    void insertCategory(
        String categoryId,
        String name,
        String description
    );

    void deleteCategory(String categoryId);

    void updateCategory(
        String categoryId,
        String name
    );

    void updateCategoryPic(
        String categoryId,
        String description
    );
}
